{$CLEO .cs}


model.Load(#BALLAS1)
model.Load(#BALLAS2)
model.Load(#BALLAS3)
model.Load(#AT_BALLAS10)
model.Load(#AT_BALLAS9)
model.Load(#SA_BALLAS9)
model.Load(#SA_BALLAS8)
model.Load(#SA_BALLAS6)
model.Load(#SA_BALLAS7)
model.Load(#SA_BALLAS5)
model.Load(#AT_BALLAS11)
model.Load(#AK47)


model.Load(#LCS_PYTHON)
model.Load(#LCS_CHROMEGUN)
model.Load(#LCS_UZI)
model.Load(#LC_AK47)
model.Load(#LCS_BUDDYSHOT)
model.Load(#VC_INGRAM)
model.Load(#LCS_PYTHON)
model.Load(#LCS_CHROMEGUN)
model.Load(#LCS_UZI)
model.Load(#LC_AK47)
model.Load(#LCS_BUDDYSHOT)
model.Load(#VC_RUGER)
model.Load(#VC_INGRAM)
model.Load(#LC_M16)
model.Load(#VCS_SKORPION)
model.Load(#LCS_SHOTGSPA)

 
038B: load_requested_models
10@ = object.Create(#AK47, 9485.8896, 8114.4131, 14.9362)
0382: set_object 10@ collision_detection 0
0750: set_object 10@ visibility 0
20@ = audiostream.Load3D("cleo\addons\EarthboundTheRudeBoyz.mp3")

audiostream.LinkToObject(20@, 10@)
audiostream.PerformAction(20@,resume)
audiostream.Loop(20@, 1)
const
LCS_PYTHON =  191
LCS_LASER = 181
LCS_CHROMEGUN =  207
LCS_4k47 =  197
LCS_BUDDYSHOT = 166
VC_INGRAM = 133
LCS_SPAS12 = 193
LCS_UZI = 196
LCS_BASEBALLBAT = 164
LCS_CHAINSAW    = 170
LCS_MINIGUN = 186
LCS_M60 = 184
LCS_M21 = 183
LC_AK47 = 111  
VC_RUGER = 147 
LC_M16 = 117
LCS_KATANA =  179
VCS_M249 = 221
VCS_SKORPION  = 225
end 


while true 
wait 0 
 if
856D:  not    actor 0@ defined

then
009A: 0@ = create_actor_pedtype 8 model #SA_BALLAS5 at  9495.3096 8116.3496 15.0165
actor.Angle(0@ ) =  50.9225
actor.Health(0@) = 500
actor.GiveWeaponAndAmmo(0@,VC_INGRAM   ,99999)
end


 if
856D:  not    actor 1@ defined

then
009A: 1@ = create_actor_pedtype 8 model #BALLAS2 at 9481.8018 8116.2588 15.0165
actor.Angle(1@ ) =  8.8388
actor.Health(1@) = 500
actor.GiveWeaponAndAmmo(1@,LCS_BUDDYSHOT   ,99999)
end

 if
856D:  not    actor 2@ defined

then
009A: 2@ = create_actor_pedtype 8 model #AT_BALLAS11 at 9471.4355 8111.5039 15.0165
actor.Angle(2@ )  =  6.398
actor.Health(2@) = 500
actor.GiveWeaponAndAmmo(2@,LCS_PYTHON   ,99999)
end


 if
856D:  not    actor 3@ defined

then


009A: 3@ = create_actor_pedtype 8 model #SA_BALLAS7 at 9457.5166 8140.9937 14.9169
actor.Angle(3@ ) =  251.2117
actor.Health(3@) = 500
actor.GiveWeaponAndAmmo(3@,LCS_BUDDYSHOT   ,99999)
end

 if
856D:  not    actor 4@ defined

then

009A: 4@ = create_actor_pedtype 8 model #BALLAS2 at 9458.2246 8159.0762 13.147
actor.Angle(4@ ) =  273.5274
actor.Health(4@) = 500
actor.GiveWeaponAndAmmo(4@,LC_AK47   ,99999)
end 

if
856D:  not    actor 5@ defined
 
then

009A: 5@ = create_actor_pedtype 8 model #AT_BALLAS10 at 9480.8555 8162.8398 12.7641
actor.Angle(5@ ) = 157.5313
actor.Health(5@) = 500
actor.GiveWeaponAndAmmo(5@,LCS_UZI   ,99999)
end

if
00FE:    actor $PLAYER_ACTOR sphere 0 in_sphere   9430.6387 8170.7017 10.8587 radius 151.0 151.0 151.0
then
   audiostream.PerformAction(20@,resume) 
    if
     056D:     actor 0@ defined 
     then
        if
        actor.Dead(0@)
        then
         actor.RemoveReferences(0@)
        end 
     end 
    
    if
     056D:     actor 1@ defined 
     then
        if
        actor.Dead(1@)
        then
         actor.RemoveReferences(1@)
        end 
     end 
     
    if
     056D:     actor 2@ defined 
     then
        if
        actor.Dead(2@)
        then
         actor.RemoveReferences(2@)
        end 
     end 
     
    if
     056D:     actor 3@ defined 
     then
        if
        actor.Dead(3@)
        then
         actor.RemoveReferences(3@)
        end 
     end 
     
    if
     056D:     actor 4@ defined 
     then
        if
        actor.Dead(4@)
        then
         actor.RemoveReferences(4@)
        end 
     end 
     
    if
     056D:     actor 5@ defined 
     then
        if
        actor.Dead(5@)
        then
         actor.RemoveReferences(5@)
        end 
     end 
end  
 
         if or
         80FE:  not   actor $PLAYER_ACTOR sphere 0 in_sphere  9430.6387 8170.7017 10.8587 radius 161.0 161.0 161.0
         $onmission == 0 
         //80FE: not   actor $PLAYER_ACTOR sphere 0 in_sphere 7720.4850 -8778.2680 1014.2270  radius 151.0 151.0 151.0
        
         then  
            audiostream.PerformAction(20@,pause)   
            if
             056D:     actor 0@ defined     
            then
                   actor.RemoveReferences(0@)
          
            end
            if
             056D:     actor 1@ defined     
            then
                   actor.RemoveReferences(1@)
          
            end
            if
             056D:     actor 2@ defined     
            then
                   actor.RemoveReferences(2@)
          
            end
            if
             056D:     actor 3@ defined     
            then
                   actor.RemoveReferences(3@)
          
            end
            if
             056D:     actor 4@ defined     
            then
                   actor.RemoveReferences(4@)
          
            end
            if
             056D:     actor 5@ defined     
            then
                   actor.RemoveReferences(5@)
          
            end
            
            if
             $onmission == 0 
             then
             
             goto @end 
            break
            end
         end 
end 
:END
object.Destroy(10@)
audiostream.Release(20@)
END_THREAD